package cn.anecansaitin.jep.parser.ast.node.expression;

import cn.anecansaitin.jep.types.TypeInfo;

import java.util.List;

public final class FunctionCall extends Expression {
    private final Expression function;
    private final List<Expression> args;

    public FunctionCall(Expression function, List<Expression> args, TypeInfo resultType, int line, int column) {
        super(resultType, line, column);
        this.function = function;
        this.args = args;
    }

    public Expression function() {
        return function;
    }

    public List<Expression> args() {
        return args;
    }
}